#pragma once

#include <cstdlib>

#include "Galaxy.h"

class Controller
{
private:
	Galaxy* galaxy ;

	bool m_Updating ;
public:
	Controller( ) ;
	~Controller( ) ;

	//Updates game based on user input
	void InputCommand( char button, int x, int y ) ;

	//Updates game whenever there is an event still happening
	void UpdateGame( ) ;

	bool GameOver( ) {return galaxy->PlayerIsDead( ) ;}

	bool IsUpdating( ) {return m_Updating ;}

	bool GetQuadrant( ) {return galaxy->GetQuadExplored() ;}

	int GetSector( int x, int y ) { return galaxy->GetQuadData(x,y);}

	int GetEnergy( ) {return galaxy->GetPlayerEnergy( ) ;}

	int GetShields( ) {return galaxy->GetPlayerShields( ) ;}

	int GetMissileCount( ) {return galaxy->GetPlayerMissiles( ) ;}

	int GetPlayerPosX( ) {return galaxy->FindPlayerPosX( ) ;}

	int GetPlayerPosY( ) {return galaxy->FindPlayerPosY( ) ;}

	int GetPlayerQPosX( ) {return galaxy->FindPlayerQPosX( ) ;}

	int GetPlayerQPosY( ) {return galaxy->FindPlayerQPosY( ) ;}
} ;